package com.yserp.api.baseapi;

import java.io.Serializable;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

import cn.basecode.server.common.validator.StringValidate;
/**
 * 用户登录时接收参数Bean.
 * 
 * @author liuqing
 *
 */
public class BUserLoginBean  implements Serializable {
	private static final long serialVersionUID = 1000L;
	/**
	 * 用户名
	 */
	@NotEmpty(message="登录的账户不能为空")
	@Size(min=3, max=20 , message="登录的账户长度必须在{min}和{max}之间")
	@StringValidate(allowSpecalChar=false,message="登录名不允许特殊字符")
	private String j_username;
	
	/**
	 * 密码
	 */
	@NotEmpty(message="登录的密码不能为空")
	@Size(min=4, max=20 , message="登录的密码长度必须在{min}和{max}之间")
	@StringValidate(allowSpecalChar=false,message="密码不允许特殊字符")
	private String j_password;
	
//	//辅助字段
//	@NotEmpty(message="验证码不能为空")
	/**
	 * 验证码
	 */
	private String jcapatch_code;
	
	/**
	 * PKI(是否为PKI登录)
	 * @return
	 */
	public String is_pki;
	
	public String getJ_username() {
		return j_username;
	}
	public void setJ_username(String j_username) {
		this.j_username = j_username;
	}
	public String getJ_password() {
		return j_password;
	}
	public void setJ_password(String j_password) {
		this.j_password = j_password;
	}
	public String getJcapatch_code() {
		return jcapatch_code;
	}
	public void setJcapatch_code(String jcapatch_code) {
		this.jcapatch_code = jcapatch_code;
	}
	public String getIs_pki() {
		return is_pki;
	}
	public void setIs_pki(String is_pki) {
		this.is_pki = is_pki;
	}
	
}
